package team.first.moiveapiv1.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @Author: HAPPY 
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.domain
 * @Date: 2021/11/25 11:01
 * @Description：
 */
@ApiModel(value="comment")
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "comment")
public class Comment implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="评论编号", example = "1")
    private Integer id;

    @TableField(value = "movie_id")
    @ApiModelProperty(value = "电影编号", example = "1291545")
    private Integer movieId;

    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户编号", example = "1")
    private Integer userId;

    @TableField(value = "content")
    @ApiModelProperty(value = "内容", example = "真是一部感人泪下的好电影")
    private String content;

    @TableField(value = "created_at")
    @ApiModelProperty(value = "创建时间", example = "2021-11-23 15:26:14")
    private String createdAt;

    @TableField(value = "rating")
    @ApiModelProperty(value = "评分", example = "8")
    private Integer rating;

    private static final long serialVersionUID = 1L;
}